
package edu.spec.student.model.questionnaire;

import edu.spec.basic.model.anno.Excel;

import javax.persistence.*;

/**
 * 问卷调查的题目，题型的话只有选择题
 */
@Entity
@Table(name = "t_subject")
public class Subject {

    /**
     * 主键
     */
    private Integer id;
    /**
     * 题目所属的问卷
     */
    private Questionnaire questionnaire;
    /**
     * 题目在问卷中的序号
     */
    @Excel(columnName = "序号", exportWidth = 20, exportConvert = false, importConvert = false)
    private Integer num;
    /**
     * 题干
     */
    @Excel(columnName = "题干", exportWidth = 20, exportConvert = false, importConvert = false)
    private String stem;
    /**
     * 选项1
     */
    @Excel(columnName = "选项1", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice1;
    @Excel(columnName = "选项2", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice2;
    @Excel(columnName = "选项3", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice3;
    @Excel(columnName = "选项4", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice4;
    @Excel(columnName = "选项5", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice5;
    @Excel(columnName = "选项6", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice6;
    @Excel(columnName = "选项7", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice7;
    @Excel(columnName = "选项8", exportWidth = 20, exportConvert = false, importConvert = false)
    private String choice8;

    public Subject() {
    }

    @Id
    @GeneratedValue
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ManyToOne
    @JoinColumn(name = "questionnaire_id")
    public Questionnaire getQuestionnaire() {
        return questionnaire;
    }

    public void setQuestionnaire(Questionnaire questionnaire) {
        this.questionnaire = questionnaire;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getStem() {
        return stem;
    }

    public void setStem(String stem) {
        this.stem = stem;
    }

    public String getChoice1() {
        return choice1;
    }

    public void setChoice1(String choice1) {
        this.choice1 = choice1;
    }

    public String getChoice2() {
        return choice2;
    }

    public void setChoice2(String choice2) {
        this.choice2 = choice2;
    }

    public String getChoice3() {
        return choice3;
    }

    public void setChoice3(String choice3) {
        this.choice3 = choice3;
    }

    public String getChoice4() {
        return choice4;
    }

    public void setChoice4(String choice4) {
        this.choice4 = choice4;
    }

    public String getChoice5() {
        return choice5;
    }

    public void setChoice5(String choice5) {
        this.choice5 = choice5;
    }

    public String getChoice6() {
        return choice6;
    }

    public void setChoice6(String choice6) {
        this.choice6 = choice6;
    }

    public String getChoice7() {
        return choice7;
    }

    public void setChoice7(String choice7) {
        this.choice7 = choice7;
    }

    public String getChoice8() {
        return choice8;
    }

    public void setChoice8(String choice8) {
        this.choice8 = choice8;
    }

}